package com.hl.BootMybatis.controller;

import javax.annotation.Resource;

import com.hl.BootMybatis.model.Demo;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hl.BootMybatis.base.model.Page;
import com.hl.BootMybatis.service.IDemoService;

import java.util.List;
/**
 * @作者:huangliang
 * @时间:2019-12-26 19:12
 * @注释:
 */
@RestController
public class TestController {

    @Resource
    private IDemoService demoService;

    @RequestMapping("findPage")
    public Page findPage(Page page) {
        return demoService.findPage(page);
    }

    @RequestMapping("findList")
    public List<Demo> findList() {
        return demoService.findList();
    }
}
